// 流程引擎状态
export enum FlowNodeStatusEnum {
  // 发起流程
  NORMAL = 1,
  // 退回
  REBACK = 2,
  // 已办理
  HANDLE = 3,
  // 审批通过
  AGREE = 4,
  // 审批中
  APPROVAL = 5
}

export const flowNodeStatusOptions = [
  {
    text: '待审核',
    value: FlowNodeStatusEnum.NORMAL,
    type: 'error',
    color: '#CC0000'
  },
  {
    text: '待审核',
    value: FlowNodeStatusEnum.APPROVAL,
    type: 'error',
    color: '#CC0000'
  },
  {
    text: '已驳回',
    value: FlowNodeStatusEnum.REBACK,
    color: '#2272DE'
  },
  {
    text: '已办理',
    value: FlowNodeStatusEnum.HANDLE,
    type: 'success',
    color: '#0D864C'
  },
  {
    text: '已通过',
    value: FlowNodeStatusEnum.AGREE,
    type: 'success',
    color: '#0D864C'
  }
]

// 单节点
export const singleFlowNodeStatusOptions = [
  {
    text: '待审核',
    value: 3,
    color: '#CC0000'
  },
  {
    text: '已驳回',
    value: 2,
    color: '#CC0000'
  },
  {
    text: '已通过',
    value: 4,
    color: '#0D864C'
  }
]
